function Card(_rank, _suit, ranksRef, suitsRef) {
	var that = this;
	
	var suit = _suit;
	var rank = _rank;
	var suits = suitsRef;
	var ranks = ranksRef;
	
	this.getSuit = function () {
		return suits[suit];
	};
	
	this.getRank = function () {
		return ranks[rank];
	};
	
	this.getName = function () {
		return that.getRank() + " of " + that.getSuit();
	};
	
	this.getValue = function () {
		return suit * 13 + rank;
	};
	
	this.getImage = function () {
		return that.getRank().slice(0,1) + that.getSuit().slice(0,1) + ".png";
	};
}